package com.tuo51.evaluate.controller;


import com.tuo51.core.service.StaffService;
import com.tuo51.foudation.model.MemVerificationCache;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/eapi/org")
@Api(value = "/eapi/org", tags = "测评 - 机构")
public class OrganizationController {

    @Autowired
    StaffService staffService;

    @Autowired
    MemVerificationCache cache;

    //获取当前用户的机构

    //获取机构下用户

    //增加机构子账号

    //移除机构子账号

    /**
     * 获取当前用户的机构
     * @param ticket
     * @return
     */
//    @RequestMapping(value = "/vip_status", method = GET, produces = "application/json")
//    public StatusResponse checkVip(@RequestHeader("ticket") String ticket) {
//        String userId = cache.getStaffId(ticket);
//        Staff user = staffService.getById(userId);
//        staffService.checkUserVIPStatus(user);
//
//        return StatusResponse.success(user);
//    }

}
